package com.xinqi.modules.chat.chat.message.manager;

import com.xinqi.common.mybatis.data.service.BaseService;
import com.xinqi.modules.chat.chat.message.domain.ChatMessageCountEntity;

/**
 * 陌生人聊天限制管理层
 *
 * @author: yyzhen
 * @date: 2023/06/02
 */
public interface ChatMessageCountManager extends BaseService<ChatMessageCountEntity> {

    /**
     * 获取陌生人聊天限制数据 -- 没有则初始化
     *
     * @param receiveId
     * @param sendId
     * @return
     */
    ChatMessageCountEntity initCount(Long receiveId, Long sendId);

    /**
     * 根据用户ID及陌生人ID删除陌生人聊天限制
     *
     * @param receiveId
     * @param sendId
     * @return
     */
    Boolean deleteById(Long receiveId, Long sendId);

}
